\begin{figure}[t]
	\centering
\begin{lstlisting}
"hash": "f7d183f08472e566a2e6b62a80e200a12670ed0e",
(*@\textcolor{black}{"summary": "libxvid: Check return value of write() call",}@*)
"date": "2016-11-11 10:17:07",
"author": "Diego Biurrun",
libavcodec/libxvid_rc.c
=======================================================
lhs: 100644 | eddbbe8c651407bdc85652191a7ba964c1776f74
rhs: 100644 | 94301a2ac1ffc10a8b22ba491c70013463107452
@@ -87,7 +87,10 @@ av_cold int ff_xvid_rate_control_init(MpegEncContext *s)
(rce->i_tex_bits + rce->p_tex_bits + rce->misc_bits + 7) / 8,
(rce->header_bits + rce->mv_bits + 7) / 8);

-    write(fd, tmp, strlen(tmp));
+    if (strlen(tmp) > write(fd, tmp, strlen(tmp))) {
+        av_log(s, AV_LOG_ERROR, "Cannot write to temporary pass2 file.\n");
+        return AVERROR(EIO);
+    }
}

close(fd);

\end{lstlisting}
	\caption{
	FFmpeg中参数、返回值关系的IPU-API误用缺陷（sha：f7d183f084）
	}
	\label{fig:2-3-ipu-2}
\end{figure}